/*    */ package com.chw.admin.login;
/*    */ 
/*    */ import java.util.Calendar;
/*    */ import java.util.Date;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ @Service
/*    */ public class SysUsersLoginLogService
/*    */   implements ISysUsersLoginLogService
/*    */ {
/*    */ 
/*    */   @Autowired
/*    */   private SysUsersLoginLogMapper sysUsersLoginLogMapper;
/*    */ 
/*    */   public List<SysUsersLoginLog> find(SysUsersLoginLog sysUsersLoginLog)
/*    */     throws Exception
/*    */   {
/* 17 */     if (sysUsersLoginLog == null) {
/* 18 */       sysUsersLoginLog = new SysUsersLoginLog();
/*    */     }
/* 20 */     Calendar beforeTime = Calendar.getInstance();
/* 21 */     beforeTime.add(12, -5);
/* 22 */     Date beforeD = beforeTime.getTime();
/* 23 */     sysUsersLoginLog.setLoginTime(beforeD);
/* 24 */     List sysUsersLoginLogList = this.sysUsersLoginLogMapper.findInterval(sysUsersLoginLog);
/* 25 */     return sysUsersLoginLogList;
/*    */   }
/*    */ 
/*    */   public int saveSysUsersLoginLog(SysUsersLoginLog sysUsersLoginLog) throws Exception
/*    */   {
/* 30 */     if (sysUsersLoginLog != null) {
/* 31 */       return this.sysUsersLoginLogMapper.insert(sysUsersLoginLog);
/*    */     }
/* 33 */     return 0;
/*    */   }
/*    */ }

/* Location:           E:\chenya\2017 4-21\com.chw\admin\login\
 * Qualified Name:     com.chw.admin.login.SysUsersLoginLogService
 * JD-Core Version:    0.6.0
 */